package com.gitee.wsl.collections.set.api


// This interface is declared only for the purpose of testing on JVM,
// so that both java.util.TreeSet and BTreeSet implementations can be tested against the same testsuite.
interface MiniSortedSet<E>:Set<E> {

    fun add(element: E): Boolean
    fun remove(element: E): Boolean
    fun first(): E
    //fun contains(element: E): Boolean
    //fun isEmpty(): Boolean

    override fun containsAll(elements: Collection<E>): Boolean {
        elements.forEach { if(!contains(it)) return false }
        return true
    }

    override fun iterator(): Iterator<E> {
        TODO("Not yet implemented")
    }
}